package com.jiyun.order.mapper;

import com.jiyun.pojo.*;
import com.jiyun.pojo.driver.CarAttribute;
import com.jiyun.pojo.driver.DriverAttribute;
import com.jiyun.pojo.order.*;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface OrderMapper {
    List<OrderInformation> getOrderInformation(String userId);

    OrderCost getOrderCost(String orderId);

    OrderTime getOrderTime(String orderId);

    OrderInformation getOrderById(String orderId);

    DriverAttribute getDriverById(Integer driverId);

    CarAttribute getCarById(Integer driverId);

    BaseCarTypeManage getBaseCarTypeManageById(Integer CarVehicleModelId);

    void insertComplain(OrderComplaint orderComplaint);

    OrderComplaint getComplain(String orderId);

    void insertUserAppraise(OrderAppraise orderAppraise);

    OrderAppraise getUserAppraise(String orderId);

    void UpdateUserAppraise(OrderAppraise orderAppraise);

    void updateOrderInformationOrderStatus(String orderId);

    void updateOrderCostPayStatus(String orderId);

    void updateOrderTime(OrderTime orderTime);
}
